class Animal:
    def sleep(self):
        print("睡")

    def eat(self):
        print("吃")


class dog(Animal):
    def run(self):
        print("跑")


class erha(dog):
    def kawayi(self):
        print("萌萌哒")


d = dog()
d.eat()
d.sleep()
d.run()
print("*" * 20)
e = erha()
e.eat()
e.sleep()
e.run()
e.kawayi()
